More sampling algorithms

Now does classical sampling. There's probably a few other changes
but that's the main one