Removing unnecessary templating from DistMatrix class