SelectSubMatrix: small change in SelectSubMatrix