Major update of DynamicList and SortedDynamicList classes