Update segment.cpp
Update logger.hpp
Update str_functs.hpp
Update segment.cpp