Midpoint and Length of Line Segments