Loop space solution of two-dimensional QCD