optimizations
optimizations

only calculate strlen of input once instead of many many many times, moved a bunch of variables to be scoped instead of global and cleaned up a logic/syntax or two
jantari/numc