Mechanisms of vortices termination in the cardiac muscle