complete quadTree implementation