Added indexOf method to byte array