LinkedList finish.
Tests passed for LinkedList and ArrayList equally.