Moved CleanUpMatrix into MesquiteCore