bugfix Theobald QCP MEX file (superimpose.c)