The minimum of N numbers of N*N