created 2D ArrayList to separate x and y values