get_all_combs function

construct all combinations of input vector