Digital signal processing in C