Implement largest product in a grid.