added support for non-q-gram set similarity functions