Logic neural networks for a character recognition problem