Figure 1:
Structure of the overall algorithm.