Optimal Control of Discrete Chaotic Systems