Analytical solution to forward/inverse kinematics of robot manipulator, path planning using RMRC Algorithm