added 1d peak finding