more work on CTAMerge

starting SortedNetwork next, its needed by CTAMerge