Fix setSizeInBits
Merge pull request #42 from gssiyankai/setSizeInBits

setSizeInBits is buggy