Update ConnectedComponents.scala