Slight modifications Combinatorics.cs