Modify singleLinkedList
Add factory method example
Merget singleLinkedList.cpp