Pan-Tompkins QRS processing module with buffer management, filtering pipeline, and peak detection primitives