Adds support for sample weights in median_absolute_error

Adds support for sample_weight in median_absolute_error. Issue #3450