Changed variable names for consistency with codebase.
Removed imports from stdlib.libc to make the module compatible with C89 and changed datatypes to be consistent across platforms (np.npy_intp).
Added check to ensure that sparse csr matrices have sorted indices before they are passed to the cython function.
Added note of authorship.