Algorithms for polynomial-based signal processing