Update subtract.cpp

rewrote code since switch won't work with typeid. Ignore all parts that all commented out.