Make codes more compact by using build-in mse function
Add comparison of 3rd method.