Create bin2dec.c

A compact C-program to convert binary numbers into their decimal equivalent with check on the input