Rewrite QuadTree to use LocationCodes instead of recurion.
Added comments to QuadTree class.