Supersonic flow over three dimensional cavities