in test.sml made maxVal function for tuples as sets
maxVal now works for both tuples and sets