Figure 13: Flow diagram of our algorithm.