schedule simulation with rb tree