slidingWindow function

Function to slide a window over a vector (individual's genotypes)