Corrected LinkedList::contains method

Corrected LinkedList::contains method