Implementing rowRanges(), rowMins() and rowMaxs() in native code.