Cleaned up C API for rowMedians()