Implement Rank search