class BitSet {

    public void set(int position) {
        if (position < 0 || position >= this.size) {
            throw new IndexOutOfBoundsException(String.format("Index: %s, Size: %s", position, this.size));
        }
        
        int offset = position / 8;
        int bitoffset = position % 8;

        this.bytes[offset] |= 1 << bitoffset;
    }

    public  BitSet(int size);

}