On-line real time computer algorithm for monitoring the ECG waveform