Cartesian meshes and adaptive mesh refinement for hyperbolic partial differential equations