Created Matrix struct.
Moved the methods from SpectralClustering to Matrix.