'Retrieve the ith slice of the sorted array
from begin to end.'

def _get_key_slice(self, i, begin, end):

    if (i < self.num_cols):
        return self.cols[i][begin:end]
    else:
        return self.row_index[begin:end]
