adding some of the yet untested fast cosine similarity