Fixed several bugs in Combinations.cpp