added support for reingold-tree