Correctly set interpolated loss when points are added, taking care of the cases when points are added outside of the known intervals. Closes #99 See merge request !100