Forward and Reverse Kinematics for 3R Planar Manipulator