Add method to extract bits from sub-array.