Added code for kgamma_g

Signed-off-by: Daniel Tarrant <daniel.g.tarrant@gmail.com>