Added a simple function for calculating heart beat times from ECG.