add all functions for dual linkedlist, no main function tested yet