implements two by two chunking
adds recursive function to process list in rolling window, 3 elements in length