v1.0.0
calculate all the connected domains based on the given two-dimensional array
Source code on GitHub