Clump2.rb modified with new algorithm - substantially faster! Likely O(n)