wrote step function code for nu in R
added basic grid sampler