ENH: add a choice of methods for ranking ties in stats.rankdata

This PR adds the `method` argument to `stats.rankdata`, which allows you to choose one of four methods for handling ties.