an efficient implement of user ranking