Implemented Tanimoto similarity