Figure 1: Flow-chart of the EMD algorithm.