Linking matrices, quaternions and transformations

not tested, neither completed