add cosine distance measure and tests