Fixed bug with multiprocessing replica exchange

The result queue was in an arbitrary order. Also implemented
multiprocessing for postprocessing.