Structure and Isomorphism Classification of Compact Quantum Groups A_u(Q) and B_u(Q)