METRIC AND STRUCTURAL ASPECTS OF PATTERN CODES