Finished Computing cosine similarity