fixed bugs in SSSP (should set MARK_PRED)