A qr-like svd algorithm for a product/quotient of several matrices