cpp implementation of Combination Sum II