lower and upper bounds of matrices