Check for red-black tree