Introsort doesn't work

Was close at one point, but messed it up.