Remove unused template parameter and add more function documentation to bfgs.hpp
Check return code of WolfeLineSearch in unit test.
Remove BFGS line search support functions from anonymous namespace since we're unit testing them seperately.