Linear paths

- Added some memoizing capabilities.  The unit test passes, but I still
suspect it, needs more tests.
- Getting close on a linear, vararg path.  I think.