Single neuron Perceptron in Java