Add skeleton for solution, using segment tree