Halfway the implementation of GradedMemoryTree
Major mess: does not compile, most unit tests broken  :/