Probably here usage of auxiliary `buf` array is reasonable but you have not documented the intent of future extension. So other people editing this code will not take this possibility into account. However there are a lot of similar places if homography and fundamental matrix estimators. I pretty sure that we will not extend homography matrix to NxN )