Add linked list in Ruby.