Pātuhitia tēnei: Synthesis and optimization of DSP algorithms