added linear interpolation to ngramutils