L2 Regularized Optimization Algorithm