Hausdorff distance

This PR implements the Hausdorff distance. Docs, examples and tests are incomplete, but the functionality seems to be ok.

Some discussion has already taken place here: #738.

Ping @jni @JDWarner
please add an example section in the docstring