euclidean dist

also fixed the sliding window function to output the correct firing
rates