added concept of reallocate to byte buffer factory.