Code to check if a critical point is a minimum.