Simplify the implementation of absolute and relative errors by using pointers-to-function for the norm

Fix #63.
Nevermind, that won't work.
LGTM then.