fixed bug in pitch difference method where the order of subtraction was reversed.