added DLDistance.scala