starting quad tree implementation