More Like This: ensures selection of best terms is indeed O(n)

Previously the size of the priority queue was wrongly set to the total number
of terms. Instead, it should be set to 'maxQueryTerms'. This makes the
selection of best terms O(n), instead of O(n*log(n)).

Jira patch: https://issues.apache.org/jira/browse/LUCENE-5795
Minor, but both places that use this could avoid assigning a value by always using the contents of `else` block if this were initialized to `0`.

    Int cnt = termFreqMap.get(term);
    if (cnt == null) {
         cnt = new Int();
         termFreqMap.put(term, cnt);
    }
    cnt.x += freq;