Add some sort functions and their introduction