cleared commentaries; added rb-tree structure