Finish the back propagation

Change the strucure of NN class, delete the visibleLayer and just regard
it as input