Statistics for Dynamic Algorithm Selection: A New Approach to the Real-Time Rendering of Complex Scenes Problem