Perceptron Algorithm Implemented in Haskell