finished first version of own array list implementation