MST: Minimum Spanning Tree algorithm for identifying large-scale filaments