add quaternion group and calculation of group center