using my own code for getting top k #109