Port the QR decomposition to ffa. Functions return the relevant quantity(ies). Compiles but not tested.