Number of Islands in 2D boolean matrix