Added Hoshen-Kopelman algorithm for breaking bond matrix into regions