line_midpoint function

Find the mid-point of lines