The Analysis and Cognition of Basic Melodic Structures: The Implication-Realization Model