A implementation of single-linkage clustering on python