REF scipy now has a cython version of rankdata