Compute derivatives using finite difference of arbitrary order