Dynamically resize the nursery

Add dynamicResize(int algorithm) implementing multiple dynamic resizing
algorithms.