Update SDOCT.cpp

Fixed the re-allocation bug