Added further optimization for finding AABB collisions.