binary vectors and tf-idf used to calculate cosine similarity