java 1-layer Perceptron