add prev to node and throw an error if no data is passed
doubly linke list implementation and tests