added peakdet function to graphUtils