add peak.pl, basic function for max and min