do not use BitSet.valueOf which is java 7 only

a few projects i care about (spark and hadoop based projects) are about to introduce breeze dependencies, but they require java 6 compatibility