Finding extreme points in contours with OpenCV