Separate implementation of MonteCarloSG

Fixes an item in #47.