pub fn from_bits(bits: &[bool]) -> usize
Helper function to get a decimal representation given the bits.