Classification of Singularities in Kinematics of Mechanisms