Simple MLP NN in Java