Finding the Midpoint of a Line Segment