Figure 4 Algorithm APPLYF.