Inference-time Scaling of Diffusion Models through Classical Search