Conversion of numbers from base n to base 10

stoi can now convert any number from BASE_MIN (2) to BASE_MAX (20) to
base 10.