ENH: Improve the performance of the 'ordinal' method of stats.rankdata.