Fixed some formatting issues for both GradientDescent and LBFGS optimizer.