creat a sort function and begin to write appears_last test.
Merge branch 'master' of https://github.com/MellorCS/comp61542-2014-lab