Convex hull algorithms (Jarvis and Graham) on doubly linked list data structure and using merge sort