Linked list rework

Fixed several bugs and logic errors with the linked list implementation.  Also added iterators to linked lists.