ideas of finding the best match of two sequences of grids.