QRS Detection Algorithm in ECG Signal Using Wavelet and a Threshold Method