reverse binary and decimal