427. Construct Quad Tree (Medium)