Finds the subgraphs that are computed by a single thread plus bug fixes closes #26