Added simple peak detector.

Copied from Eli Billauer, 3.4.05. No modifications.
Initial addition of langevin functions.