I would suggest you include a "trim" method that reduces the memory usage. It seems that for real work, this is an important feature.