Built initialize function for arrayList.c