added ts.cpp, though it treats negative input integers as strings, so I should fix that