Added private zeroCrossingSearch method implementation