implemented lorentzian distance and his test