Improve the performance of the Image and Graph Connectivity algorithms
The collection of connectivity algorithms had a couple of inefficiencies. By moving to using WorkId we can remove a couple of arrays of the same size as the input domain. In addition by moving to using atomics we can remove an bool output array with a size equivalent to the input domain and a call to reduce.