Added weighted quaternion averaging