Fixed B[i] array, now fetches the correct bits from R_i