Moved interpolation, filtering packages to math.