added wtMCosSimilarity -- weighted cosine similarity on a matrix