Finds the gradient of an ndarray using finite differences