Implement an algorithm to find the optimal path for a robot navigating a grid with dynamic obstacles for Berkshire Grey's warehouse operations.