VEC: use the Square type for inRange
ALGO: implement the quad tree