Allocate and initialize the toDoItems array