implement << operator; implement part of linkedlist.cpp