nick hamiltonianCombinations.rb v1.01