v1 of megerKList
iterate linked list cannot use the for loop
correct a bug of calling object function
add basic test case
add two edge cases
add one-sided case
change name of variable