Fig. (9) Block diagram of the master algorithm.