matrixToQuatern function

Convert a Transformation Matrix to a Quaternion Representation