Log the number of parallel tasks (for debug/timing purposes).
Add betti_C code for arbitrary marking multisets, clean up some duplicate code.