Create a self-contained Python module named cortex_model.py that exports a class named cortex_model (accessible to tests) implementing a minimal fixed-connectivity spiking neural network. The implementation must expose the required interface and behaviors used by the tests, including initialization, get_post_syn_neurons, neurons_dynamics, c_syn, restart, and support two modes: 'full' (default) and 'mask'.