Figures out the pattern of a series of data both forwards and backwards.