editing add method
infinite loop when added by descending order
solved by changing head node's next from nullNode to null