* refactored two layer network
* fixed random initial weights