Added serialize/deserialize methods
Added indexOf method to byte array