sketch two-scale algorithm in Figure 2