added l2 regularization to back propagation in mini nn framework