more optimization changes; newton raphson updated
Added BFGS; added new types of cv tests; many smaller changes