Fixed MH algorithm to work with intervals > 1

Method attemptChange(...) was not updating state.oldValues when the new value was equal to the old value. In some cases this resulted in the oldValues map being always empty and so never being used by the sample() method.

Also update the BayesianNetworkTest to run MH with and without intervals.