Design of a comparator tree based on reversible logic