Synthesis of recursive algorithms of optimal signal processing