Reinforcement Learning to Achieve Real-Time Control of Triple Inverted Pendulum