overlap testing for boxes and spheres