added a library for numDeriv, oops