An attempt to create a neural network in Haskell (based on my Java version)