Implement a linked list in Ruby