A finite-volume, adaptive grid algorithm applied to planetary entry flowfields