Fix rows vs columns confusion in quaternionToMatrix