eliminate call to getEnergyGradient in cppLBFGS.get_result()

also, properly cythonize copying the double * array into a numpy array
in get_result()