a class for tracking min or max values per key