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

Fix #63.