Lie-Group variational Integrators being used to get a finite time stable control algorithm and simulated using Matlab and Simulink