ConnComp cpp