Cosine similary helper class