added function for getting top k keyphrases given a file and value of k