premutation
permutation, avoid funtion return array