Post rank algorithm
Documentation and tests
Merge pull request #302 from benrudolph/rank-algorithm

(#297) - Rank algorithm