Simple metacognitive model

Summary
Simplified discrete state space model implementation of the metacognitive agent. Mathematical description and prototype code.