Add max()
Rename max() to size()
Reduce memory usage
Enable assertions for testing