find distance between two line