Fits lines, merges things that overlap