solves byzantine agreement using EIG data structure