It works! Input array 1s 0s, nthreads as arg