Updated decToBin function