Quad tree and blocks