Reorganizing headers and implementations for Matrix and DistMatrix and renaming ResizeTo -> Resize.