Corrected some bugs and implemented test functions and comparison with
L-BFGS-B method.