implemented new method for deciding clipping based on the histogram of
10 full window calculations. Implemented singleton instance on the
KMCSolver.
fixed a bug where upper subwindows got wrong maximum values. First
subwindowing goes through however I think the DOS merging is wrong since
the next sampling yields total flatness on the originally flat area and
crap elsewhere.
increased viability of initial DOS clipping. Issues with rough areas on
subwindows stacking alot. Needs investigating. Got alot further though.
fixed some uninitialization warnings