Optimal Control for CyberOctopus Arm