Refactoring of LargestElements and SmallestElements

Changes to extend for the new MaxSizeList and avoid the interface
previously being used, since there didn't seem to be much value.