Update dots.ml

fixed a bug in likeness calculation