Improved min-max matching for numeric values