programs that convert a number in binary to decimal and decimal to other bases