Global Non-Rigid Alignment of 3D Scans