c implementation of the munkres_sparse python module