Expectancy in melody: tests of the implication-realization model