Reduced number of calls to strlen() in NativeCalculator

Removed dev limit of 1000 iterations in doDiv().
Refactored NativeCalculator::doSub() and doDoSub() in a single method
Reduced the number of function calls in NativeCalculator to improve performance