PLOS ONE: DynPeak: An Algorithm for Pulse Detection and Frequency