Update Common.vhd

Corrected GrayToBinary function.  Verified correction with behavioral simulation.