Solution to problem 15.
Added function to compute combinations.