util.py: added option to return threshold value to threshold_adjacency_matrix
resolved conflicts in util.py