Estimation of a model for matched panel data with high-dimensional two-way unobserved heterogeneity