Forgot to commit this one...
Added specialization for easier geometry in 2d and 3d.
Added some (not so clear) examples of the memoization facility.