Fixed dec2bin function