first commit of working dsv project (except thresholding, still errors in code there, because of migration from matlab to java)