code for converting decimal to binary