Added similarity measures

Updated the cypher queries for the classification endpoints to now work
on a similarity measure that devalues patterns that have higher
information entropy (measure of the uncertainty in a random variable).