Added hexToByte algorithm