update max tries for generating a rightinvertiblematrix