Added binary version of cosine similarity analysis