convert 2d array to list of list java