Three-dimensional instability and vorticity patterns in the wake of a flat plate