3d collision detection  using AABB method