quick sort
possible corrupt image warning