iterator which generates all combinations from sequence