[matlab_mst] implemented an optional `connect` and `num_tree` calculation following matlab implementation
[matlab_mst] implemented an optional `connect` and `num_tree` calculation following matlab implementation

GeoscienceAustralia/PyRate,GeoscienceAustralia/PyRate