added avl tree; fixed rb tree