branch_singles function

Add branches of length zero to get rid of single nodes in an adjacency matrix