Added c++11 support
Added implemantation sliding window algorithm