Revise Quadtree to support multi dimensions. Revise dim and add division. Add test cases for multi dimensions.