Numerical methods for Hamilton–Jacobi type equations