Morphological Analysis of H I Features. I. Metric Space Technique