Ruby Implementation of Linked List