Added the BufferSize type

- Added the Resize function to Buffer and DSABuffer.
- Updated the Buffer and DSABuffer member functions accordingly.
- Updated the examples to use the new features.

WARNING: This commit brings a breaking change to Buffer::SubData
and DSABuffer::SubData