RMSE functionality

Fixed problem with missing cases, fit stat function successfully
computes rmse for matrix of predicted values.