convert decimal to binary and vice versa