Motion Planning of an N-Joint Planar Mechanism : A Non-Heuristic Approach