ENH: Eliminated build errors.
ENH: Gradient check compiles.  ENH: Added cost/gradient interfaces to the neural network directly.
BUG: Minor array access bug in the gradient check, still fails though.