A Generic Stack class used to make a stack data structure with nodes which holds one element of generic type.