add dp convex hull trick

http://wcipeg.com/wiki/Convex_hull_trick