implement cosine similarity (compare unresolved entries with resolved)