3D Shape Matching with Quaternions