Corrected cosSim (input vectors)