A QML/Javascript implementation of the data structure Quadtree that partitions the 2D space recursively subdividing it into 4 quadrants in order to speed up the search operation to find all the points that are within a specific rectangular area:
Reference: