finished line detection segmentation. should return an arraylist of int[][] with init point and final point for each segment