Efficiently Checking Binary Tree Balance: The -1 Sentinel Pattern on September 16, 2026 algorithm python tree +