A templated C++ library of signal processing algorithms and their fixed-point model