added relabelConnected function, ExpMax is broken....