Optimal Control of Level Sets Generated by the Normal Flow Equation