Add knowledge base functionality. In this inception, it includes several
functions: 
* payload/2, payload/3: stores various tuples.
* memory/2: memories of past seen objects.
Fixes #1