Added SSSP and CC code