modified addNode function by adding a tail variable for easy access of data
one add node funct removed beacuse of function overloading prob. Corrected makePoset function