Some byte array implementation tricks