Add train method to perceptron. Implement an okay convergence method.