WIP qr_fact