Completed cosine similarity and dice coefficient