added AbsCriterion (module comes courtesy of Ross Goroshin).