first draft of SortedTally<> - including SortedTally_stdmap - but it fails regression tests - and must be fixed