Updated linked list implementation.
Refactored linked list node types.
Updated assertions and debug output.