NN sequence encoding and feed forward

The answer to the NN exercise can be found

seq2inp_ans.c
nnforward_ans.c