more efficient arg. passing in combinatorics classes