Debug RMQ tree