Store input data in quadtree.