Merge pull request #308 from dongcarl/2019-02-reformulate-unknown-bits-calculation