pd_simple function

Simplified pulse detection using Dietrich (2004)