Perceptron based branch predictor