Added capacity() and max_size() methods.