lines_center function

Centre points of lines