Added pattern history table, local predictor with pattern table in function