Refactoring various parts of the stats and utility modules.  Implemented new unit tests for BFGS fitter class.