number of points in line
sort linked list with quick sort