Gui

1.  Some change in the way we were walking in the tree for the neighbor research:
we were just going down into sons Node and ignoring all brother. This is now correct.
2. Add a potential calculation using the tree + associated test function.

3. Move all type declaration and their attached function into a specialised file (types.go for types declaration and types_func.go for specialized function.