program to enumerate the compositions of a positive integer