Phase 1 / mo-algorithm, sqrt-decomposition
Phase 5 / mo_algorithm, fenwick
Phase 4 / tree_queries, mo_on_tree