Implemented a circular doubly linked list to use in future algorithms. It hasn't been tested yet though...