zcr function

Zero-crossing rate