simple neural net with ansi c