Least-squares spectral element method with implicit time integration for the inviscid Burgers equation