Resample : clean code and add javadoc
RTree : add persistence comportement in test.