Updated and tested Buffer. Works but needs improvement. Fixed new functions in ArrayList, added updateSize() to them.