Update Logarithm.cpp

Made most of simplify, have not tested all bugs yet. Trying to make simplify as in depth as possible to make the operations (add, subtract, divide, multiply) simpler to deal with.