a singly linked list in ruby