add linklist arraylist comparison