Described Egypt encoding process
RMSE function