Refactor the part to select the comparison operator
Add a function to detect the data type of the elements of the each sets
Add a test of estimate_data_type()