Change Matrix to store vectors as row vectors

Changed from column vectors.
At this point, very little is affected by this change.