added get_width and obtain_from_generic for Chi2 kernel