implemented more of arraylist and linkedlist