Update primitivesCleanUp.m and MergePrimitives.m as well as cleanUp.m and MergeCompositions.m. I have redesigned the functions so that when tyring to merge repeated primitives or compositions we do not only look at the next element, but we can look as many elements down as necessary. It's much more efficient. When doing this, many of the filtering stages in the Composites layer and in the LLB layer do much less work.