cosine similarity search added search class updated some vector functions implemented