Fixed a bug where I was not computing the cost function properly in the AutoEncoder.