Squashed commit of the following:

commit 01f230016585a40a8d8ad634b0974aaf3b401d60
Author: Peter Szabados <kangirigungi@gmail.com>
Date:   Mon Sep 15 22:54:46 2014 +0200

    It seems to work

commit 6df4ca64f1c6f2fc94445740d31c4793ce178010
Author: Peter Szabados <kangirigungi@gmail.com>
Date:   Mon Sep 15 07:28:49 2014 +0200

    Started refactoring NeuralNetwork
Remove unnecessary calculation