lsq 3 in row or column