Updated organized connect component segmentation to allow for clustering of NAN values.