Semigroup of generalized inverses of matrices