refactoring: moved validate_column_index to check_valid_column_index and removed validate_less_or_equal; added test, replaced code
refactoring: replaced calls to validate_row_index with check_valid_row_index