cleaned Matrix class a bit
added matrix-to-vector converters