Inverse kinematics by arm splitting, divide six link arm into two three link arms