pretty sure this works.  needs large tests now
fix 0 size buffer handling
small test for appending from n-2 to n+2
adding large test cases
adding test case for removing all elements