Functions find k-combinations and k-permutations of your array of n elements using multithreading(C(n, k); A(n, k)).