PHP Cosine-similarity-scores Resources