fix distributed_matrix::print to specialize row/col major