replace min with the builtin function
applied mtcopy to combinatorics classes
more efficient arg. passing