Red Tree (Optimized)