Gumbel distribution functions and gradients
