Title: Adaptive Pseudospectral Method for Discontinuous Problems