(De)compression algos for KH1 and 2