add linked list implementation for ruby and c