Added a QueryExpander class, which filters out the terms whose occurrences in the collection are less than the given threshold