Change LocalDate linear structure from array to ArrayList