Finished LargestProductInGrid constructor.