Simple (yet another) neural network implementation