First try of combination implementation

please fix the ugly global variable using, didn´t know how to deal with
it in the short time ;)
Fixed using of global variables

there was no reset after the first execution so erverything started
getting interesting...
fixed handling if k = 0
fixed again
BÄM
Merge pull request #1 from Si-B/master

First try of combination implementation