Double Ended Lists Code