Get next value from column of root 's  value. If the value stored at root was  last value in its column, then assign  INFINITE as next value
int nextVal = hr . r < n - 1 ? mat [ hr . r + 1 ] [ hr . c ] : Integer . MAX_VALUE ;