A splitting algorithm for Hamilton-Jacobi-Bellman equations.