implemented getFeatures for perceptron