lists permutation of N numbers