use macro to generate llsq_orth & llsq_svd