binary search in path-planner for local controller