complete ArrayList.cpp