consensus function

Calculate Tastle and Wierman's measure of consensus