Modify Tanimoto distance in reference to Apache Mahout