working ruby code, working files in bitSet