Hydrodynamic Stability of a Modulated Shear Flow