adding cosine similarity mapper reducer