Add hash comparison methods to HashUtil.