On Least-Squares Fitting of Two-Dimensional Data with a Special Structure