update: modify an error and add quick sort