Add disjoint, repeat to algorithm
Finish tests for algorithm (#1)