adding first ecg implementations without any optimizations