Finding Other Endpoint of a Segment