added ranking algorthm
Merge remote-tracking branch 'origin/master'