A New Detection Algorithm Based on Spectrum Features for Electrocardiogram