Comlete ByteArray class implementation basically.