Fixed bug in calculating beta coefficients--we were looping through the inner part twice, when really we should be calculating the upper-triangular of the coupling coefficients. The test problem quantsigtest now works correctly.