Stack and Queue implementation with Generic List