finish ranking with vector space