A Perceptron Learning Algorithm implemented in Java