I've been wondering if it makes sense to also have an API which takes in a cost matrix as input?  That way, users can implement their own distance metrics etc.