Figure 1: The block diagram of the algorithm.