Clone of http://www.ncorpus.com/aydingurel/codes_java_neural/java_neural_feed_forward.html with my changes