Optimizing constrained-environment redirected walking instructions using search techniques