Update Singly Linked List.rb