Exact Learning and Data Compression with a Local Asymmetrically Weighted Metric