Single and Double Linked Lists in Ruby