A simple model for melting curve maxima