Added 2D query segment tree.