Matlab Implementation of Surface Reconstruction Method to reassemble a broken surface