Creating SPQR trees