Add predefined linkage functions

I added three linkage functions `average, single, complete`, which can be used by passing in a string with the names to the linkage argument instead of a function as suggested here #2.

I duplicated the tests for every functions, not a good test, but at least ensures that they are working.