Implemented perceptron learning algorithm and IO methods