add L2 regularization for linearNN, and check gradient