change to quick sort
add simple bit array