Ported Levenberg Marquardt training and fixed unit test errors.