adding function to fit hairpin melts.