minor improvement on the KeyValueList data structure
moved StackSorter to correct package