Add function for merging together multiple assoc spaces