splitting the min matrix mult and max expression classes