Find nature of turning points using second derivative (#540)