Bubble merging (not working very well)