Two-Level Adaptive Branch Prediction