Implement a few methods for RingBuf

* shrink_to_fit
* swap_back_remove
* swap_front_remove
* truncate
* resize