modify the ranking
Merge pull request #229 from leoliang/master

ranking algorithm modified