Added windowing for tanimoto similarity