Added tests for SortedmaxSizedContainer. Also made the backing array for it dynamically increase and decrease in size