add set_matched_idxs_proc(), modify set_buf_idxs()->set_schedule(), modify set_grid2buf_idxs(), set_matched_idxs_outer