Added stoping criterion using an error window
Added stoping criterion using an error window

Neseb/wapiti,yanqingmen/Wapiti,Jekub/Wapiti,yanqingmen/Wapiti,yanqingmen/Wapiti,yanqingmen/Wapiti,Neseb/wapiti,Jekub/Wapiti,yanqingmen/Wapiti