Inverse Design with Dynamic Mode Decomposition