update sort algorithms