full permutation in web worker implemented