Implemented EnsureCapacity, fixed typo.