Fitting a family of intersecting regression models with one or two intersection points