Implementation and Usage of Quad Trees