Triple Pendulum Using Lagrange's Equations in MATLAB