Inference Trees: Adaptive Inference with Exploration