Text this: Development of an Adaptive Algorithm for Solving the Inverse Kinematics Problem for Serial Robot Manipulators