Ported neural network code from Emacs Lisp.
Added copyright header.
Added example neural network.