Updating HashTree classes to use ByteArray