Novel method of digitization of electrocardiogram signals