chech_sim function added - checks similarity between two vectors