Change threshold functions to be functions rather than lambdas
Make demo slightly saner
Make FFNN use numpy arrays for weights.

It's noticably faster.