avl: rename node->key to node->sm