Add unsigned and soft thresholds + write to adj matrix instead of list