Add ClassMap minimizer, close #2