Artificial Neural Net implemented in Java