using pattern matching for hexadecimal
using pattern matching for alpha-end
refactored to include SymbolicConverter to eliminate duplication
removed if statements in favor of pattern matching in repeatedDivision