multiplying all activation functions and thetas in cost funciton.  now
ready to start on the actual cost comparison with the y vector
calculating the yk portion of the cost function