Finished integer version of quick sort