Added linked list reversal implementations.