Update contour.jl

Use of `min` and `max` resulted in error, I replaced them with `minimum` and `maximum`