found distance between two lines