Add MainParKruskal, fix bug with ParallelKruskal and 1 thread