https://sestevenson.wordpress.com/implementation-of-fir-filtering-in-c-part-2/