Median-of-three pivoting sounds like a good idea -- I'll plan to put that in.