implementing growing byte buffer in pigeonson