Switched to a custom version of ArrayUtil, plus some cleanup.
Added utility for rearranging bits