add cosine and some discussion about similarity
fix cosine plot