Bug in list fixed and overload operator<< for list class.