Implementation of various termination detection algorithms in peersim