Wt housekeeping

Top-k frequency functionality will be removed from wt_int. I have added a node_type and methods which make it possible to move the topk_greedy method in the document retrieval module.