Computer Model of a "Sense of Humour". II. Realization in Neural Networks