Conceptual and Design Principles for a Self-Referential Algorithm Mimicking Neuronal Assembly Functions