added class to iteratre through all tokens in index
TreeArrayMultiMap now accepts Comparator instance