Calculation works

Calculation implemented. Topology isn’t correct yet. The
displayMonteCarlo method doesn’t work anymore.