implemented several sort functions.

Execution times can be also compared.