adding linked list implementation in ruby