Inverse Kinematics Analysis of a Five Jointed Revolute Arm Mechanism