added some assisting methods
added code for topk queries
added code for topk queries
cosine score not working properly yet :(