take out the topkheap and add method to iindex

take out the topkheap from pmi.py and change the import path in test
cases. add top k method to inverted_index
same to last version log and refact pmi for npmi