code to convert binary to decimal and back