Vortex formation in the wake of an oscillating cylinder