starting to to aabb tree but not much
merged