Application of the level set method on the non-convex Hamiltonians