MATLAB implementation of Continuous Procrustes Distance