Made generic listNode instead of stack/queue Node