Implementing MicroPsi, a cognitive architecture