Optimal path in strong disorder and shortest path in invasion percolation with trapping « Dynamical phase transitions in a random environment » Power law scaling for a system of interacting units with complex internal structure