calculate all combos
Merge remote-tracking branch 'upstream/master'
output doesnt write repeated final node
Merge pull request #8 from pdjely/master

removed final node from output