Merge
Write a ‘merge’ function, which takes as parameters pointers to the heads of two deques.
The function should merge the two deques leaving the first list as a sorted version of both lists.
There are several ways this can be done! Calculate big-O for your algorithm.