Updated l2_regression.cpp

still has not fixed nan issue