Version 0.2 with a faster cosine similarity calculation