sort is complete
refactor
test case for head is added.