convert_base_to_number function

Map a single base to the corresponding number (generic ggDNAvis helper)