rewiting zerocrossing_rate with diff