Mutations in triangulated categories and rigid Cohen-Macaulay modules