Add function for merging together multiple assoc spaces

Ah, that comment refers to the pre-optimized code. We still do need all the previous Qs to compute the next one - note that M_sum is incremented by something involving the new Q - but I'm not quite sure what I was trying to communicate in that comment, and will rewrite it.