algorithms for sorting 5270808