Replace MarkovChains with external implementation

Depends on https://github.com/Terasology/MarkovChains/pull/1