Newton solver uses to_string for logging.
L-BFGS solver uses to_string for logging.
Remove unused variable.
Rewrite of to_string. Supports more of STL.