Added base10_to_baseN function provided by Caleb.