Added matrix and quaternion types.