Conversions from binary to decimal and vice-versa