rmse function

Computing the root mean squared error