Ruby Implementation of Tree ADT and its operations