Add utility function max()
Replace distance in each tile with maximum width of the shape so far

This completes step F of the algorithm:

  F) compute at each step the maximum dimension of
     the circular shape so far