Update and rename next-spt.cpp to set-spt.cpp