Adding cost function for predictNode for use with checkGrad
Fixing forward prop iteration, total error regularization