Fix buffer overrun in weight initialisation.
Move weight and theta init to functions.
New run loop, evaluation uses avg. SSE.
Iteration is the proper word, not generation.