create program calculating cosine similarity