Added within-rel-err.
Added tests for within-rel-err.