Rework of sm-protocol and added a macro to compare p-values equivalent to compareLimits.C