added code to generate all combinations

given triad numbers generate all possible combinations
Merge branch 'master' of github.com:naturegirl/cos424project