MAE function

Mean Absolute Error