Added Matrix class and sor.h