title: Create a BitSet's toByteArray method (Wrong byte order)
body: <p>So i'm working on a bittorrent project. I need to create a bitfield according to number of piece. So i use BitSet but the problem is, the method toByteArray doesn't return the byte array in the order of byte that i wanted.</p>
  <p>Eg:</p>
  <pre><code>//number of piece=11 
  bitSet.set(5,16);  //following bittorrent specification
  </code></pre>
  <p><code>bitSet.toByteArray()</code> -&gt; <code>0xe0ff</code> (this is the byte that i get)</p>
  <p>But what i want is <code>0xffe0</code></p>
  <p>Thanks in advance.</p>