MIN Generalize pattern matching to a list