cosine and jaccard distance documented and auto-tested