Check if a column index falls within this group
bool containsIndex(int index) { return index >= startIndex && index < endIndex; }