[algorithm] Algorithm to return all combinations of k elements from n