fixed resampling bug with non-increasing cdfs
version increment