Added private zeroCrossingSearch method