Added rank api in leaderboard