public Consensus removeConsensus(int id){
  consensusesLock.lock();
  Consensus consensus=consensuses.remove(id);
  for (int i=lastRemovedCID; i < id; i++)   consensuses.remove(i);
  lastRemovedCID=id;
  consensusesLock.unlock();
  outOfContextLock.lock();
  outOfContextProposes.remove(id);
  outOfContext.remove(id);
  outOfContextLock.unlock();
  return consensus;
}

public Consensus removeConsensus ( int id ) { consensusesLock . lock ( ) ; Consensus consensus = consensuses . remove ( id ) ; for ( int i = lastRemovedCID ; i < id ; i ++ ) consensuses . remove ( i ) ; lastRemovedCID = id ; consensusesLock . unlock ( ) ; outOfContextLock . lock ( ) ; outOfContextProposes . remove ( id ) ; outOfContext . remove ( id ) ; outOfContextLock . unlock ( ) ; return consensus ; }
removes a consensus from this manager
