add gamma encoding/decoding classes