adding method to convert binary to hex