Add an optimized WCC algorithm