How to find the length of each segment and its midpoint