added windowed zero crossing algorithm