Added Foldable instance to NTree.
Refactor Dimensions, put some values in a Rect.
Added some helper functions.
Tests pass.