Two-dimensional numerical simulation of vortex shedding and flapping motion of turbulent flow around a rib