Generation of all k-subsequences of a sequence.