Homotopy of periodic two by two matrices