src: t-window algorithm added