Numerical Methods for Viscosity Solutions and Applications