An attempt to write a fast neural network in Java