Add a way to initialize SortedDict with a dict