Use masked pointer like avl tree