Set up function to fill in inverse kinematics.

After calculating d1, a2_th, and a3_th, based on input x and y, we can
simply run the original kinematics equations for a3 and a2. (I hope)