adding shingos latest code for spectral clustering including fix to the ...

...svd square matrix problem