sort algorithms and test done