Sampling based rewiring approaches to solve motion planning problems for a robot with dynamic obstacles