Fixed reconstruction cost function to square error function
Fixed parameter update equation and Fixed reconstruction error function