adding a linked list reverse solution