Make dendrogram structure order deterministic
Renamed sorted_by_idx to _sorted_by_idx
Removed unecessary list()
Merge pull request #80 from astrofrog/deterministic

Ensure that results from repeated runs are deterministic