System of second order robot arm problem by an efficient numerical integration algorithm