linked list in ruby. basic structure and reverse