Fix contractive autoencoder penalty

I believe there is a small bug in the computation of the penalty for the contractive autoencoder. It looks like a parenthesis was misplaced and the weights matrix is summed then squared instead of the other way around.