Implement finite difference gradient for sparse matrices.
Document.