implement ArrayList and LinkedList