adding accuracy stuff for perceptron