Update A104 with quick sort