change int in matrices with unsigned int