Very naive C implementations of basic DSP functions