Add GroupNumberInMatrix