remove_constants function

Remove constant data, including empty rows, empty columns, and columns with constant values.