implemented the new trace based predictor