Adding adjacent, triad and quadtrad calculations