Added a stub for cosine similarity