add bounds for rows and columns in linear problems