A 2D simulation of solving the inverse kinematics problem using the CCD(Cyclic coordinate descent) algorithm written in swing