Reverted to old Node merging, but with addition of connectivity 2 removal and resampling that preserved endpoints