Exploiting Data Hierarchy as a New Modality for Contrastive Learning