Merge overlapping tee markers

Goes through all the tees, and sees if their markers are overlapping. If they are - merge them into one. Then process is repeated, until none of them are overlapping.