update
random sort algorithm