[Refac] finished multilayer NN