add implementation of array list and its test case