Added getQueryIDF which returns the idf for a given query, it returns
zero of the query is not in the table