added stub code for query expansion similarity function