**9.5 Algorithm design**

The design of the algorithm was achieved by complying with the framework shown in **Figure 4**.
