Merge ByteVector improvement made in pull request #122

Merged the improvement of ByteVector made in pull request #122