Sliding Window code

Still incomplete