Implement packet buffer module
Add unittests for packet buffer