Trying optimisation for merging clusters