min_pixel is called with point outside the matrix
maybe a problem with "succ" function used in "minimum_succ" function