Update arraylist.cpp